#!/bin/bash
cd "$(dirname "$0")" || exit
source ./.env/bin/activate

if [ -f "feijiang.key" ]; then
    export BAIDU_FEIJIANG_API_KEY=$(cat feijiang.key)
fi

if [ -f "prompt.txt" ]; then
    export WENXIN_SYSTEM_PROMPT=$(cat prompt.txt)
fi

#exec target/debug/aish
exec python3 src/main.py
